package com.xian.im.modules.im.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * 数据字典
 *
 * @author Mark sunlightcs@gmail.com
 */
@Data
@TableName("xian_im_dict")
@ApiOperation(value = "数据字典实体", tags = {"数据字典实体"})
public class DictEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	@TableId
	private Long id;
	@NotBlank(message="字典名称不能为空")
	@ApiModelProperty("字典名称")
	private String name;
	@NotBlank(message="字典类型不能为空")
	@ApiModelProperty("字典类型")
	private String type;
	@NotBlank(message="字典码不能为空")
	@ApiModelProperty("字典码")
	private String code;
	@NotBlank(message="字典值不能为空")
	@ApiModelProperty("字典值")
	private String value;
	@ApiModelProperty("排序")
	private Integer orderNum;
	@ApiModelProperty("备注")
	private String remark;
	@TableLogic
	private Integer deleteFlag;

}
